package com.example.ipcdemo.aidl;

import android.os.IBinder;
import android.os.IInterface;
import android.os.RemoteException;

import com.example.ipcdemo.TaskInfo;

public interface IRemote extends IInterface {
    static final java.lang.String DESCRIPTOR = "com.example.ipcdemo.aidl.IRemote";

    static final int TRANSACTION_add = (IBinder.FIRST_CALL_TRANSACTION + 0);
    static final int TRANSACTION_addTask = (IBinder.FIRST_CALL_TRANSACTION + 1);

    //两数之和
    public int add(int num1, int num2) throws RemoteException;
    //添加一个任务
    public TaskInfo addTask(TaskInfo info) throws RemoteException;

}
